<?php

	class Retrieve 
	{
		function Retrieve () 
		{
			
		}
		
		function parseActions()
		{
			if(isset($_REQUEST['action']) && $_REQUEST['action'] === 'posts') 
			{
			    $this->getPosts($_REQUEST['keywords']);
			}
			else
			if(isset($_REQUEST['action']) && $_REQUEST['action'] === 'albums') 
			{
			    $this->getAlbums();
			}
		}
		
		function getPosts($keywords)
		{
			$search = new Search();
			$search->displayEditPostSearch($keywords);
		}
		
		function getDrafts($keywords)
		{
			$search = new Search();
			$search->displayEditDraftSearch($keywords);
		}
		
		function getAlbums()
		{
			$album = new Gallery();
			$album->getAll();
		}
	}

?>